﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using Data;


namespace Business
{
  public  class ChiTietHoaDonService
    {
      public static List<ChiTietHoaDonDTO> GetChiTietHoaDonByMaHoaDon(int mahoadon)
      {
          return ChiTietHoaDonRepository.GetChiTietHoaDonByMaHoaDon(mahoadon);
      }
      public void Insert(ChiTietHoaDonDTO chitiethoadonDTO)
      {
          ChiTietHoaDonRepository chitiethoadonRepository = new ChiTietHoaDonRepository();
          chitiethoadonRepository.Insert(chitiethoadonDTO);
      }
      public void Update(ChiTietHoaDonDTO chitiethoadonDTO)
      {
          ChiTietHoaDonRepository chitiethoadonRepository = new ChiTietHoaDonRepository();
          chitiethoadonRepository.Update(chitiethoadonDTO);
      }
    }
}
